package com.autotest.nore.controller;

import com.autotest.nore.request.RegisterRequest;
import com.autotest.nore.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping
public class RegisterController {

    @Autowired
    private UserService userService;

    @PostMapping("/autotest/register")
    public String registerUser(@RequestBody RegisterRequest request) {
        return userService.registerUser(request);
    }

}
